Ubuntu 14.04
Sponsored Link

SPICE Server
2014/04/24
 
Install Desktop Virtualization "SPICE ( Simple Protocol for Independent Computing Environment )". It's possible to connect to virtual machines from remote client computer.
Configure a virtual machine for SPICE.
[1] Edit existing virtual machine's xml-file and start virtual machine with SPICE. This site's example has created virtual machine without graphics, so it's OK to change settings like follows, but if you created virtual machine with graphics, Remove "<graphics>***" and "<video>***" sections in xml file because qxl is used for graphics.
root@dlp:~#
virsh edit www
# edit the configration for a virtual machine "www"
<domain type='kvm'>
  <name>www</name>
  <uuid>b994b26e-f9eb-fc91-899a-98fb8de56029</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>2</vcpu>
  .
  .
  .
     
# add follows to appropriate sections

     
# set any password for "passwd=***", set uniq number for "slot=***"

    <graphics type='spice' port='5900' autoport='no' listen='0.0.0.0' passwd='password'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='32768' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>

Domain www XML configuration edited.
root@dlp:~#
virsh start www
# start VM

Domain www started
[2]
 
Tweet